package com.sen.common.utils;

/**
 * @author sen
 */
public class SqlLikePatternsTestClass {

	private String str1Like = " str1Like ";
	private String str2Like = "str2Like";
	private String str3LikeRange = " str3LikeRange ";
	private String str4LikeRange = "str4LikeRange";

	private int int1Like = 1;
	private int int2Like = 2;
	private int int1LikeRange = 3;
	private int int2LikeRange = 4;

	private Long long1Like = 1L;
	private Long long2Like = 2L;
	private Long long1LikeRange = 3L;
	private Long long2LikeRange = 4L;

	public String getStr1Like() {
		return str1Like;
	}

	public void setStr1Like(String str1Like) {
		this.str1Like = str1Like;
	}

	public String getStr2Like() {
		return str2Like;
	}

	public void setStr2Like(String str2Like) {
		this.str2Like = str2Like;
	}

	public String getStr3LikeRange() {
		return str3LikeRange;
	}

	public void setStr3LikeRange(String str3LikeRange) {
		this.str3LikeRange = str3LikeRange;
	}

	public String getStr4LikeRange() {
		return str4LikeRange;
	}

	public void setStr4LikeRange(String str4LikeRange) {
		this.str4LikeRange = str4LikeRange;
	}

	public int getInt1Like() {
		return int1Like;
	}

	public void setInt1Like(int int1Like) {
		this.int1Like = int1Like;
	}

	public int getInt2Like() {
		return int2Like;
	}

	public void setInt2Like(int int2Like) {
		this.int2Like = int2Like;
	}

	public int getInt1LikeRange() {
		return int1LikeRange;
	}

	public void setInt1LikeRange(int int1LikeRange) {
		this.int1LikeRange = int1LikeRange;
	}

	public int getInt2LikeRange() {
		return int2LikeRange;
	}

	public void setInt2LikeRange(int int2LikeRange) {
		this.int2LikeRange = int2LikeRange;
	}

	public Long getLong1Like() {
		return long1Like;
	}

	public void setLong1Like(Long long1Like) {
		this.long1Like = long1Like;
	}

	public Long getLong2Like() {
		return long2Like;
	}

	public void setLong2Like(Long long2Like) {
		this.long2Like = long2Like;
	}

	public Long getLong1LikeRange() {
		return long1LikeRange;
	}

	public void setLong1LikeRange(Long long1LikeRange) {
		this.long1LikeRange = long1LikeRange;
	}

	public Long getLong2LikeRange() {
		return long2LikeRange;
	}

	public void setLong2LikeRange(Long long2LikeRange) {
		this.long2LikeRange = long2LikeRange;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + int1Like;
		result = prime * result + int1LikeRange;
		result = prime * result + int2Like;
		result = prime * result + int2LikeRange;
		result = prime * result + ((long1Like == null) ? 0 : long1Like.hashCode());
		result = prime * result + ((long1LikeRange == null) ? 0 : long1LikeRange.hashCode());
		result = prime * result + ((long2Like == null) ? 0 : long2Like.hashCode());
		result = prime * result + ((long2LikeRange == null) ? 0 : long2LikeRange.hashCode());
		result = prime * result + ((str1Like == null) ? 0 : str1Like.hashCode());
		result = prime * result + ((str2Like == null) ? 0 : str2Like.hashCode());
		result = prime * result + ((str3LikeRange == null) ? 0 : str3LikeRange.hashCode());
		result = prime * result + ((str4LikeRange == null) ? 0 : str4LikeRange.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final SqlLikePatternsTestClass other = (SqlLikePatternsTestClass) obj;
		if (int1Like != other.int1Like)
			return false;
		if (int1LikeRange != other.int1LikeRange)
			return false;
		if (int2Like != other.int2Like)
			return false;
		if (int2LikeRange != other.int2LikeRange)
			return false;
		if (long1Like == null) {
			if (other.long1Like != null)
				return false;
		} else if (!long1Like.equals(other.long1Like))
			return false;
		if (long1LikeRange == null) {
			if (other.long1LikeRange != null)
				return false;
		} else if (!long1LikeRange.equals(other.long1LikeRange))
			return false;
		if (long2Like == null) {
			if (other.long2Like != null)
				return false;
		} else if (!long2Like.equals(other.long2Like))
			return false;
		if (long2LikeRange == null) {
			if (other.long2LikeRange != null)
				return false;
		} else if (!long2LikeRange.equals(other.long2LikeRange))
			return false;
		if (str1Like == null) {
			if (other.str1Like != null)
				return false;
		} else if (!str1Like.equals(other.str1Like))
			return false;
		if (str2Like == null) {
			if (other.str2Like != null)
				return false;
		} else if (!str2Like.equals(other.str2Like))
			return false;
		if (str3LikeRange == null) {
			if (other.str3LikeRange != null)
				return false;
		} else if (!str3LikeRange.equals(other.str3LikeRange))
			return false;
		if (str4LikeRange == null) {
			if (other.str4LikeRange != null)
				return false;
		} else if (!str4LikeRange.equals(other.str4LikeRange))
			return false;
		return true;
	}

}
